package tdt4240.iddqd.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {

	public static final String DATABASE_NAME = "iddqd";

	public static final String TABLE_NAME = "saves";

	public static final String LEVEL_ID = "level_id";
	public static final String CHECKPOINT_ID = "checkpoint_id";

	public DatabaseHelper(Context con){
		super(con, DATABASE_NAME, null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE " + TABLE_NAME + " (" + 
				LEVEL_ID + " INTEGER ,"+ CHECKPOINT_ID + " INTEGER)"); 

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		//No need for upgrade tactic upon first release
	}

}
